Fix memcpy error in LinFunction::setY()
cleanup: remove solver.cpp
improve ownership