added rotate, minElement, and count to algorithm.nim

these functions work pretty much like their c++ versions. Rotate in particular could be useful.