program to get a diamond pattern