shrinking searn sequence task code