Add function divideMatrices. Matrices Kff, Kfd were changed to class
member.