This code was written by Sebastian Krahmer and you can find the original version at https://github.com/stealth/odd.git. Permission has been granted to release this code under MIT/X for ubase. It has been simplified by sin@2f30.org. Thanks Sebastian!