reverse_sequence_if_needed function

Reverse sequences if needed (merge_methylation_with_metadata() helper)