Truncate an array to the highest multiple of a number