Added some abs to the indexes used in storageindexes to make sure they are not negative. Pass test cases