operations now run in background

OpenMP and OpenCL both run on their own thread separate from the UI
thread, so the UI doesn't freeze anymore. Also added a progress bar and
timer.