Three point correlation function code