This could he implemented more space-efficient and performant by passing pointers to generic parameters as well as functions under the constraint that the data structure pointed by the access type is only read and not modified. In !ius context we would like to point out the inconsistency that memory is allocated and redefined function-like using the keyword new and deallocated by implicit defined procedure deallocare.