added ruby code for prob36, much quicker. Added Ruby code prob38. I like Ruby.