are u meaning to get the matrix orthoganlised? with google search u could end up in lots of examples with that... for computer programs. either look at "modern filters by Simon Haykins" or "Numerical Receipes in C'" These boooks elucidate the algorithm neatly...