code refactoring: swap keyType and dataType in ordered list template class