Final step of simplex

implemented method to determine leaving variable and modify basic
variable array