Ggeneral purpose BufferedArray for handling read-write on any type of data