make the function, 'linearProg_2D_PS', more simple