Cosmit: Syntax simplification in multiple_fast_inv.

This helps better understanding what is the code logic.
I do not think it can be further factorized yet.