On the Numerical Solution of HJB Equations in Finance