Data routing in multicore processors using dimension increment method