Add ranking for search queries.

- Set SearchRecord comparable
- Add test dataset ranking with IBk(k-nearest neighbour learner)
- Add pretty output for ranked results
- Improve index override flag. If true regenerate index in class constructor