removed bug in function generate_per_pc_sdist_recurrence_hist