Function that merges the two sorted arrays and returns the inversion count in the arrays
static int merge ( int [ ] arr , int [ ] temp , int left , int mid , int right ) { int i , j , k ; int inv_count = 0 ;