fn calculate_capacity(record_count: usize) -> usize
Calculates a reasonable capacity for a HashMap based on the number of records.