(Optimal) Online Bipartite Matching with Degree Information