Lru algorithm c language implementation, using a stack.