Finished Part 3

Sections a, b, and c are finished for part 3. I fixed the decreasing
array to not give an outofIndex exception, but it is still giving a huge
run time. 

Fix decreasing array.