Initializing the arrays to 0 instead of empty