A fast implementation of the LA Cosmic algorithm