fixed problem with acc_time for recursive functions.
bug fix in remove_duplicates.