N-way Set Associative Cache Simulator in C