Add gretna_pdist2 because pdist2 do not exist in  matlab2009a