added normal equation and a separate test file