Insert sort without debugging