Calculations of viscous flow with separation using Newton's method and direct solver