added both recursive and iterative solution for finding LCM of int[]