Remove a useless function in regression test script
Remove some unnecessary array copying in WAV module

About 10% faster loading of audio files
Add the "useless" function in regression tests back
Remove some useless copying in median calculation in the main script