add new source file for reference

this source file will be used as reference when converting the Java
algorithm to Objective-C