fast and memory-efficient algorithms for computing time-frequency distributions