A procedure to rank bases by probability of being optimal using imbedded hyperspheres