Optimal partition of a bipartite graph into non-crossing matchings