A Tree Convolution Algorithm for Queueing Networks