Sample code for bubble sort implementation using Android NDK