Mathematical and computational modelling of biodiversity