adding and removing process from ready queue