Fixed cache hit ratio calculation and now allows for tags and indexes larger than 16 bits