test hareAndTortoise without loop