HW5: Performance improvement

Using shared memory for the bins and upped number of elements that each
thread processes from 8 to 16 as this seems to be the sweet spot (at
least when running it online). Down from 8 ms to around 1.4 ms when
running online.
Also, cleaned up the code a bit.