Added Ruby algorithms for 1.1 and 1.5 with rspec tests