Implemented healpix calculation