Added first working version of the clustering algorithm, which uses MOABs SetIterator instead of recursive function calls.