Universal data structures for manipulating clustered k-mers