Minimize usage of 'for' in the quaternion module. Replacing the loops with numpy matrix operation will make the code faster. @Sonny65