Pair Matching: When bandits meet stochastic block model