handling freed space; implemented index iterator

Change-Id: I2f049bc64ccae46691d26982fc40c77f8ce3c00a