use symmetric matrices