Merged mining integration step 1

trying to incorporate NMC merged mining to FRC-based mining, step 1.