It's a laborious chore - matching up socks in a big pile of washing. They never seem to come out together, but now there's an algorithm that promises to turn you into an efficient sock-sorting machine ...