finished coding the special method for computing logarithms of rotation matrices with angles near pi