Mintpal

add mintpal & histogram diff