added lexicographical_compare algorithm & test cases

Please review.
you can probably just delete this commented out line.