whiten_apply function

Apply a whitening plan to design and data matrices