Implementation of Louvian community detection algorithm in Ruby