code: function smallest (arr, compare) {
  		var n = arr.length;
  		if (!n) { return; }
  
  		var min = arr[0];
  		for (var k = 1; k < n; k++){
  			if (compare(arr[k], min) == -1) {
  				min = arr[k];
  			}
  		}
  
  		return min;
  	}
docs: /*
  Find the smallest element in an array, wrt compare (avoids sorting)
  @compare : return -1 || 0 || 1