Optimal template placement for searches of gravitational waves from precessing compact binary coalescences