public int[] uniques(int[] array){
		int[] tempArray = new int[array.length]; // keep unique values
		int uniques = 0;
		for (int i = 0; i < array.length; i++){
			boolean isUnique = true;
			for (int j = 0; j < i; j++){
				if (array[i] == array[j]){
					isUnique = false;
				}
			}
			if (isUnique){
				tempArray[uniques] = array[i];
				uniques++;
			}
		}
		int[] returnedArray = new int[uniques]; // move unique values to scalled array
		for (int i = 0; i < uniques; i++) returnedArray[i] = tempArray[i];
		return returnedArray;
	}