Федосов - Лабораторная работа #2

You still didn't solve the `quadratic number of conversions` problem. 

You have 5 modes now. For those you have 5 functions, each function having 5 branches. Overall, 25 branches.

If I add another mode - I have 6. And I have to add another function. And add a branch to every other function. Having 36 branches overall. As you can imagine - this doesn't scale.

So, please, modify the implementation, so that overall number of branches is linear, and not quadratic.