fix bugs about miscalculation in the number of accesses, and implement a calculator for the local number of accesses when there is no data placement