Added relative normalization scheme to vectorize algorithm.