Fixed a bug in Ball Pivoting Algorithm