there are two kinds of memory