Some basic algorithm  base on int array