tried gpu. no success. made cpu impl little faster