public static void moveSubArray(int[] arr, int from, int to, int offset){
		int iters=0;
		if(from>to){
			iters=((arr.length-from)+to)+1;
		} else {
			iters=(to-from)+1;
		}
		if(offset==1){
			int previous=circleIncrement(to, arr.length);
			for(int i=0;i<iters;i++){
				swap(arr,to,previous);
				previous=to;
				to=circleDecrement(to,arr.length);
			}
		}
		if(offset==-1){
			int previous=circleDecrement(from, arr.length);
			for(int i=0;i<iters;i++){
				swap(arr,from,previous);
				previous=from;
				from=circleIncrement(from,arr.length);
			}
		}
	}