This is a simple little algorithm, really just a toy, but I'm proud of it.