add quad tree and demo