add basic min difference of two int arrays