p=45.76, r=46.94, test set
towards implementation of original algorithm