simple code to compute angular correlation function - Will serve as a reference to compare with GPU version