add -algo to select merge method

Signed-off-by: xiehuc <xiehuc@gmail.com>