binary file comparison and merger