Add $first and $last methods of aggregation