[Edit] Implemented red black tree and changed root folder permissions