Solved insertion sort in java

Signed-off-by: Ionut Radu <ihonius@gmail.com>