creating gdt with 3 segments (null, code and data)