Comparison of merge sorting and cardinal sorting algorithms