added hsv colouring, doesnt help since index is always below 1
added the lin alg library, hopefully can do least squares plane fit now