Completed first round of c optimization on rotation algorithm.