Applying boosting to gasoline HCCI operation with residual gas trapping