Converting Dictionary to Array