Added gitignore as well as a shrinking feature to the implementation of the array