added pseudo array class and tests for problem 1