revise error status handling
add Hasegawa-san's multi-chunk merge sort