refactored simplex methods, renamed wp to cp, privatized methods, small refactoring