Cohen-Macaulay bipartite graphs in arbitrary codimension