all steps redacted
haleckiy for lento4ka-matrix
haleckiy for lento4ka-matrix for massiv
haleckiy for lento4ka-matrix for massiv + all functions for tests