Simple algorithms for orthogonal upward drawings of binary and ternary trees