$PermissionTable["category"] = array("id" => $FetchCat["id"]); // store category ID as an id sub-arrayPermissionTable["category"] += array(
"rank" => $data // apply rank requirements in a sub-arr
data = [ [93, 3], # This is the required sub-array because 3 is smaller than all theother numbers]
# tag the smallest item from each sub-array onto the front, creating
int *L,int leftCount,int *R,int rightCount)
// j - to mark the index of right sub-array (R)
// k - to mark the index of merged sub-arraycreate left and right subarr