Initializing valid and dirty bit of cacheblock.
Converted cacheblock to class.