Add algorithm in TileUtils