Single Program, Multiple Data Programming For Hierarchical Computations