1. Bug: hiding the functions to switch on/off space index mode.
2. Measuring the speed of distances for sparse spaces.