Began work on converting c function to pure ruby
About 30% of the way towards an accurate conversion