Create Hexagon class, fix memory leak on Android