Conflict Free Access to Templates of Trees and Hypercubes in Parallel Memory Systems