3 merge sorting funks