FIXED: boundary error in solveLinear is now fixed and clarify the spec of solveLinear