added scale matrix creation macro