optimized node tree traversal: removed redundant matrix multiplications