add mem/seg4
Merge branch 'adding-seg4' into lassi