Compact Algorithm implemented and all compact tests passing