Add gravity calculation as an example

There is both a compilable Cargo project and a short excerpt in the readme for demonstrative purposes.