Added original matlab files (deterministic version)