Added basic rank calculation to address_space_tool.