Split LWS compare in 2 variants - 1D and 2D.