updated RepeatedSquaring.R and buchmann-exercise-09-03.R