Completed matrix class, changed RingBuffer to a highly simplified class *facepalm*