Added methods for pushing, popping and merging indexes.
Removed unused index-get-with-partitions.