The double edge allocator should be aligned now, needs testing.

Also changed the code in the linear allocator to make it more clean.