generate_rot_matrix function

Generate Rotation Matrix