1. A computer-implemented method of controlling an algorithm that is performed on a unit of work in a subsequent software pipeline stage in a Network On a Chip (NOC), the method comprising: executing a first operation in a first node of a Network On a Chip (NOC); generating a message that includes a payload, wherein the payload is an output of the first operation; transmitting the message to a nanokernel that controls a second node in the NOC, wherein the nanokernel calls an algorithm that is needed by a second operation in the second node in the NOC; and using the algorithm to execute the second operation in the second node.