added lexicographical_compare algorithm & test cases

Please review.
for internal methods like this you don't need to use a default argument for queue, you can always depend on one being passed in.