first attempt at destructive memory efficient searching..