Storing sub in map
if ( ! sorted_subsequence . has ( sub . length ) ) sorted_subsequence . set ( sub . length , new Set ( ) ) ; sorted_subsequence . get ( sub . length ) . add ( sub ) ; } for ( let it of sorted_subsequence ) {