Fixed operations done on the assumptions that points are leaf nodes, which is now changed so that only leaf nodes contain points, which are not nodes.