A search algorithm for finding Cosmic-Ray anisotropy with the PAMELA calorimeter