Added a cascade hasher for improved image to image matching

Change-Id: I53c757857b14bcfdeb968e6486cb82954f005c2d