High-Low pairing algorithm finally done