Changed access specifier for "partition" method 

got rid of "ArrayIndexOfBoundExcpetion"