A Performance Study of 2 D Mesh & Torus for Network on Chip Based System