Elixir implementation of histogram lab