created symmetric matrix for multiplication