Added reverse, reduce and map functions