Alternative tiling algorithm