Change measure name from pebble to space and alter its computation to use a single traversal