Implemented the FCFS Algorithm.