Solution of the stationary stokes and Navier-Stokes equations using the modified finite particle method in the framework of a least squares residual method