Running through a parallel for when applying wavelet transform