Added collinearity, java and javascript. (js works, java doesn't)