Created the ArrayUtilities class for shuffle, indexOf was kept the way it is.
All the occurrences of shuffle() have been patched (1). since indexOf is standard for ECMAscript5, we should decide whether we want to move also indexOf into the ArrayUtilities for backwards-compatibility.