Initial work on support for proper sort indexes. The idea is to support
various types of sorting index (since different data / workload can take
advantage of different implementations).

DB/Query now works exclusively against indexes.Sort and indexes.Iterator.

Added the simplest possible sorted index (an array).