changed the function name product to cartesian_product
added mean, median, print_vector, scalar_product