refactor code to not need a second copy for initialization phase, and have a full simplex solver function.