Truncates the elements of the the intvalue array between two values. Usage: truncate(lower, upper) where lower is the lower bound to which smaller elements are truncated, and upper is the upper bound to which bigger elements are truncated.