Finished new method for spatial indexing.
Applied the same method for temporal indexing.
Fixed a bug in centroid distance.
Called the appropriate temporal indexing function.
Called the appropriate spatial indexing function.
Spatial Disjoint and Temporal After and Before don't use any index.