(The solution is here if you are interested https://stackoverflow.com/questions/7540546/merging-2-binary... )
(The solution is here if you are interested https://stackoverflow.com/questions/7540546/merging-2-binary... )