start working on heap merge version