add gauss solver algorithm