iss #43: implemented array classes; fixes iss #44 (memory leak)