Life at the extreme: lessons from the genome