I will run your Ruby version and the Java version that I write and post 
the results here. Give us a week or so as I have other things to be doing.