Cleaned up the insert_node_into_ready_queue() procedure by moving the node comparison logic to a new function, node1_goes_before_node2_in_queue(), which takes two nodes and compares them according to the current sched_type.