Abstract:Considering that the doubledifference relocation program provided by Waldhauser wastes lots of memories because of using static array, a new method to improve the program by use of dynamically allocatable array is presented.The example offered along with the programs can run on 256MB instead of 1.4 GB memory with the same speed.