added lexicographical_compare algorithm & test cases

Please review.
Could you add a doxygen comment to this? That way it will show up in the public documentation. See some of the other public algorithms for examples.