min algorithm: changed intensity array to list, min-function faster for list, why???