Neural Network in Ruby