changes to LP Solver  for Problem 1