fixed iterative LinearLSTriangulation

I basically just moved the first 2 instructions of the loop outside of it. They were always resetting the newly calculated value to the initial values, so that the loop just stopped after the first iteration.