The extended finite element method for flow problems