improved error message
initial version of introduing parallelism to tail-recursive function.