added lexicographical_compare algorithm & test cases

Please review.
`range1` and `range2` should be `const` here