Simplex method algorithm which i implemented around 2011 for friend of mine