find max product of three elements of a list