public static int[] selectionSort(int[] array) {
		if(array == null || array.length <= 1) {
			return array;
		}
			
		for(int i = 0; i < array.length; i++) {
			int min = array[i];
			int index = i;
			
			for(int j = i; j < array.length; j++) {
				if(array[j] < min) {
					min = array[j];
					index = j;
				}
			}
			
			int temp = array[i];
			array[i] = array[index];
			array[index] = temp;
		}
		
		return array;
	}