Precurser to Mehr32 (First written in Java, and then rewritten in C++)