Refactored getTriangleNeighbors into utility class