completed defragmentation and respective added test. Also implemented negative records lengths to flag as deleted.