C implementation (compiled and tested in clang and dmc) and D implementation (compiled and tested under dmd) added.