My algorithm in a nutshell. I might have delved too deeply.