java code for applying the projection method for solving dsge models