Inflation cools much more than expected in October