add test for rotation matrix derivative
add a test for sitedist_grad

and a python function that does the same
add test rotation matrix derivative for small angles

my python function to compare against is currently broken