fix: changed code style to Linux Kernel; updated graph distribution algorithm (added bufferization), distribution performance increased by 4x. Found and remover memory leak after distribution.