Sorry, I haven't got around to extracting just the algorithm yet. You'll have to download the sourcecode to see it.