optimizing bzero function