Create Optimal Array Multiplication Sequence - Uva 348