calculate decay on processes in wait queue as well
add provided solution and my solution