Fix stratication bug. New distance metric was developed and agregation
matrix was reconstruted