Quadratic Form Of A Matrix