An abstract delegate function for measure the correlation between two given numeric vector