Added neighboring pair and neighboring three function