problem 5: LCM for first n number

adding a function that calculates the LCM of a given slice .
using wikipedia entry for table based calculation of lcm
http://en.wikipedia.org/wiki/Least_common_multiple
Added some convenient functions for array operations related to finding
the lcm.
helps in solving the lcm for the first 20 numbers as per problem 5
definition.