made print transpose pad and unpad as separate functions. Fixed the error for odd sizes using padding