Removed unused utility functions.
Fixed the barycentric_coords utility function and cleaned up the intersection functions.