reshape_events function

Reshape events data for fMRI analysis