adding tested source code file
tried optimizing a bit by avoiding context switches. Helped a little, but to reach primetime, a different breakthrough is needed.