added Clear function to Array