added rotate, minElement, and count to algorithm.nim