Optimal Upward Planarity Testing for Single Source Acyclic Digraphs