Basic implementation of Simplex algorithm in C