Finished the cache emulator core code

At least , it now works fine for data-instruction unified cache,
FIFO/LRU/RANDOM, WriteBack/WriteThrogh
Added the Allocation control

minor changes , Added the Allocation control