update check whether l1 and l2 are null before push into heap