Implemented the linear ranker

1. Implemented the linear ranker naively for now.
2. Sort scored document in the handler instead of in the ranker.