completed #chop3 recursive solution using the same array as an argument and modifying the references to left and right in relation to mid