The Lambda algebra and a motivic analogue