Added the insertBefore function to Array
Revert "Added the insertBefore function to Array"

This reverts commit 8632e0720217c9db9b13bbc7dfa5ce8afdb7ae23.
Added function and tests for insertBefore