Update main.cpp

- Introduced atomic operation, the algorithm become much faster
- Accepts lowercase targets
- Supports CL_DEVICE_ACCELERATOR devices