Added simplex implementation.
Moved generic rules for dependenies in own file.