Thousands attend slain Cold Spring officer's funeral