Two dimensional hashing for visual tracking