working, but not really, lpsolve only