adding arrays and ordered map
working on memory allocation
fixing small bug
renaming stuff
changing definition of offset type
fixing small bugs