Implement chained comparisons
Merge pull request #89 from undingen/chained_comp

Implement chained comparisons