Update PersistentCollection.php

added new method sum accordingly to Collection interface