Moving from android to algorithms