Change of the multdimensional array for a vector of 1D arrays

* It is little faster, but not enough
Performance improvements; type hints