Fixes #8 because for odd lengths it was returning n.5 instead of integers