add solve algorothms.