Wasn't calculating the waiting time right for FIFO and uniform scheduling