Finished the code for reading the points from the ply file