Added the grid function to libinterferometry. Needs to be tested before making it THE grid function for the interferometry package.