Working with matrix classes to create a generator that simulates vector orbits and determines intersections