Array Data Structure Location Calulation