Added code for finding pairs with given sum in sorted order