A GPU based FX correlator for radio astronomy