K-Lines: A Theory of Memory