K Way Merge - Using Priority Queue Java