Finding 1-factors in bipartite regular graphs, and edge-coloring bipartite graphs