Add memory measurement
Merge branch 'master' into gh-pages

* master:
  Add memory measurement