using memset for initializing array