added pr2 with newton and quasi newton