static public void main(String []args)
	{
		double [] data = new double[64]; // 64 MB
		for(int i = 0 ; i < 64 ; i++ )
			data[i] = i;
		double [] cdata = new double[64];
		
		int []vsize = {4,4,4};
		int []chunkSteps = {2,2,2};
		ChunkTranslater t = new ChunkTranslater();
		DataChunk chunk = new DataChunk(vsize,chunkSteps);
		
		boolean nex = true;
		int i = 0;
		while(nex)
		{
			cdata[i++] = t.readDouble(data, chunk);
			System.out.print(cdata[i-1]+" ");
			nex = chunk.nextPos();
			if(chunk.inChunk == 0 )
			{
				System.out.print("\n");
			}
		}
	
		for( i = 0; i < 64 ; i++)
		{
			chunk.getChunkByOff(i);
			
			System.out.print(" "+cdata[getOffInChunk(chunk)]);
		}
	}