All the problems with shared memory solved. Speed-up 48x!