Different ways to access two dimensional array elements