More attempts to develop regular expression derivatives and tailrec