Move the merge functions from IRReader to a new class

This commit refactors the code without changing the functionality.

Test: development/vndk/tools/header-checker/tests/test.py
Bug: 147396457
Change-Id: I0c1ce9d4cf6abd838bbad17149def505c20cedcf
8 files changed