eigen values and vectors for mat2 added
some pure offtopic algorithms