[circular list] Added purely functional Floyd's algorithm