Simplified branching in GLS.whiten

Removed one level of an if statement in GLS.whiten and reordered
from lowest to highest for the dimension