Find unique with extra space or datastructure