added rotation matrix computations to helper.py