implementation of direct-mapped cache, no seg fault, w/count bug, w/seg fault comments