Moved coordinate array operations from base to algorithm

Also, cg_algorithms.orientationIndex now takes either two or three
arguments
Removed part of directive

Removed part of directive from coordinate because coordinate array
operations are no longer exported