improved speed and rewritten the LZ_Queue data structure