how to solve minimum absolute difference in an array