Add data structures Bipartition and Matrix