Class for handling arrays of patches