Pointers and new array implementation

Now an array is stored as Array of loc * int