changed partition queue to linked lists, fixed stream short overflow