ex06: implement linearTriangulation()