Replace BaseMatrix and all the inherited classes with Matrix4f and Vector4f