Acceleration Method for Nearest Neighbor Classification based on Space Decomposition