Added stack methods for mutable arrays.