A finite element implementation of the nonlocal granular rheology. (25th February 2016)