moved Address class into Cache class file, added write and replace functions to cache