Added inner_product function

This function will compute the inner product between two vectors.