On the Numerical Solution of the Filtering Problem