multithreading support for prewitt operation.

to be optimized. one task per row is too much overhead in thread
creation but already faster than single threaded.