Implemented dual list for top-k with TF and in-memory data generation.