Working with matrix classes to determine orbits and points of intersections of vectors