HW3: Performance improvement

Using shared memory in kernel that find min/max