start implementing functional operations for AVector
improve avector functional operations
improved element-reduce for vectors
implement functional ops for AMatrix
more functional ops tests
fix tests