A parallel algorithm for the calculation of Kronecker products/sums on hypercube processor topologies