cycles: add cycles.scm

  * cycles.scm: an implementation of Floyd's algorithm for
    loop detection in linked lists.