Fixed SpearmanR to pass unit tests and achieve consistency with scipy.stats.spearmanr