major refactoring/redesign of ProtoMatrix3 and ProtoMatrix4 classes