Completed, cleaned-up, improved implementation
Merge branch 'master' of https://github.com/npat-efault/musings