week2 assignment to implement simplex algorithm