Create choose.h

Decided to break out choose, since other algorithms are going to want to use this too.