Coronal Heating by Collision and Cancellation of Magnetic Elements