added indexFill and simplify index

implemented kernel on indexFill similar to index and get a speed boost of about 1x