Added grid aproximation for mwvd. Splited ui and tests executables.
Now there are two executables and the multithread works for both diagrams.