forcing use strict; in all files
code cleanup
tests for returnFromInfiniteArray helper, and updated implementation with bug fixes