Monte Carlo simulation of melting transition on DNA nanocompartment