Add some fast-paths for equality checks.
Use a while loop for index equality.
Add more tests for equality correctness.
Merge pull request #38 from pellucidanalytics/topic/fast-index-equals

Add some fast-paths for equality checks.