Among all polynomials $P(x)$ with integer coefficients for which $P(-10) = 145$ and $P(9) = 164$, compute the smallest possible value of $|P(0)|.$

Let's think step by step and output the final answer within \boxed{}.
user