fixed bug: while splitting even sized array, mid must be included