add stride algorithms to fun