Implementation of 2 ROBDD merging algorithm (The art of computer programming, Knuth, Vol 4a, 7.1.4 section)