Split dictionary class to create generic array class