borrowing connected components impl
Added clojure impl of connected components