Inflation cools to 2.2% as gas, grocery prices fall in October