added ScatterAll routine (last commit), and got rid of Ahalf matrix