Solutions to exercises from Think Python: How to Think Like a Computer Scientist book implemented in Ruby