Implementation of the neural gas algorithm in Ruby