bipartite graphs working with bitsets