tracking objects in n-dimensional space