Implement max & min index bounds

Implement special query operators $max and $min:

http://docs.mongodb.org/manual/reference/operator/meta/max/#op._S_max
http://docs.mongodb.org/manual/reference/operator/meta/min/#op._S_min