refactored one-dimentional functions to use calculateCorrelant function instead of class