Root classes handling

1.Root classes handling
2.Add a function to get linear alloc