Android implementation of PTAM using the NDK