Consider that 1. One or more dimensions could be too thin to perform even 1 level of wavelet transform; 2. That thin dimension doesn't have to be Z; it could be any dimension. Q: 1. What will the program do? 2. What should the program do?