add array store implementation, tests