Chunk loading algorythm

First part of ChunkManager added