Adding orientation to detection functions.
Removing mem_* files.
Removing test executable.
Adding/modifying tests for directional calling.