O(1) complexity of calculating distance between clusters (by using information from distances mattrix)