begun writing code to compute minimum entropy basis