Merge pull request #5 from naryl/master

aggregation
Implementing indexes
Implement ensure-index properly
Merge pull request #6 from naryl/indexes

Indexes