Bug in linesegcollision circle function fixed. linearalgebra.h file optimized.