[IP] Added subalgorithm specification and unit tests