Update array.lib

Implemented array.sort and array.walk