Programming Assignment 2

Function to calculate the inverse of a vector.