Logic Gate Drawing Using Logic Gate Priority