How can I pair socks from a pile efficiently?
stackoverflow.com