task 3 lab 2

rewrite min method using to invokations of Math.min()