fix a bug in creation of adjArray. Now junction tree is working ok for testcase 1