Efficient trace of product of matrices

Thank you everyone for the relies so far. (@mohamed82008 and @Elrod, I am still thinking about your posts but don’t want to delay thanking you :slightly_smiling_face:. )