Implemented the per_file_histograms buffer as a SafeLimitedList, wrote Task 2 in thread_runtime