Added branch and bound median search