"i,j" to "x,y" and vector rotation fixed
Added simple 2-D line class