Optimizations
New program: Find the minimum distance between 2 elements in an array