generalize dor_next_mesh function and use it instead of route_xy and route_yx function (which only support 2 dimensions)
generalize dor_next_mesh function and use it instead of route_xy and route_yx function (which only support 2 dimensions)

git-svn-id: c9a369146f666b9deda0c4af3838c8001dc825a8@3048 ce7aba0d-9f81-40a6-a495-cecae84b0515

SyedAbubakar/BookSim,SyedAbubakar/BookSim,invisibleboy/mysim,booksim/booksim2,booksim/booksim2,invisibleboy/mysim,booksim/booksim2,SyedAbubakar/BookSim,invisibleboy/mysim