explain various types of registers and cache memory