Few minor improvements in CDLOD

* Changed vector layout for computations - now default vector component
order is (x, z, y, w)
* Refactored conditions in quad selection function