fixing fastcluster_correlation_distance function so that it matches R's behavior for use='pairwise.complete.obs')