add procedure reverse sequence with fold-right and fold-left