Updated buddy queue to correctly add processes to the queue