Added function to extract unique protein pairs