initializing new distance table