functionality for determining first and last usable addresses