Added a function to perform LRU and FIFO

doalgorithm coded