patches, GM computation: check correctness of result (the obtained basis are orthonormal)