Added an alternative queue implementation.
Set SO_REUSEADDR option to tcp socket.
Simplified the scheduler algo.