Hypercube Algorithms by Sartaj Sahni & Sanjay Ranka