Added getSortedNodesToCheck

Function that finds nodes that intersect with a given ray and sort them
in order of distance (ascending) from the ray origin. Also updated
findRayIntersects to suit