changed queue data structure
new algorithms and updates to old ones