Adding rotation matrix class implementation