Gravar-mail: Algorithms for detecting and analysing autocatalytic sets