fn assign_to_windows<'a>( files: impl Iterator<Item = &'a FileHandle>, time_window_size: i64, ) -> BTreeMap<i64, Window>
Assigns files to windows with predefined window size (in seconds) by their max timestamps.