Added the baisc agorith, lp.cpp