In the depths of the Sock Soup Kitchen, the algorithm of the ages was born. It was an algorithm of great power and great silliness, designed to justify the existence of a single, lone sock in the drawer. This is the story of how it came to be.