move tiling routines to a separate scheme file and add horizontal tiling