Simpex method implementation to solve LP and ILP problems