O(n) version of pushChunks, when joining unused chunks.