Update GenerateBA.m

slow for n>500...