Fixed a mistake in the isquad function. It should only be true if K is nonzero. Cross quadratic and bilinear elements do not make isquad true.