Beginning to code various methods for statistical operations on arrays