Implement Violation correction when adding a elemnet in heap