added findmax(A,dim) function to array.jl. also added unit tests to test/reducedim.jl