Algorithms and computational problems study using Ruby language