parallel computing of residue distances in pdf file