More efficient implementation of delete + notes on complexity.