Added Delete function. This delete function has not been thoroughly
tested. It may have memory leaks.