Transition from Gestalt laws to memory.