Added ValueArray class with custom algorithms for inserting and erasing.