remove C implementation
added 'pipe' module
added test case