Projection Geometric Methods for Linear and Nonlinear Filtering Problems