XRDSLAM: A Flexible and Modular Framework for Deep Learning based SLAM