Added a write, read method. Fixing the shell sort.