improving itemcf output generation, and fixing itemcf2 to use heap and store only top K items