The algebraic mind : integrating connectionism and cognitive science