Core.hs, Main.hs: Use RECTANGLE instead of Rectangle everywhere

- delete own definition of Rectangle