Abstract class of integer arrays and functions using them