Code to calculate correlation functions for two (astrophysical) catalogue datasets