This is probably related (replace largest with smallest):
As a side note, for small arrays, you should get a significant speedup with StaticArrays.jl